package org.dromara.system.domain.bo;

import org.dromara.system.domain.CmsRule;
import org.dromara.common.mybatis.core.domain.BaseEntity;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;

/**
 * 规则管理业务对象 cms_rule
 *
 * @author Lion Li
 * @date 2025-08-29
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = CmsRule.class, reverseConvertGenerate = false)
public class CmsRuleBo extends BaseEntity {

    /**
     * 主键
     */
    private Long id;

    /**
     * 规则名称
     */
    @NotBlank(message = "规则名称不能为空", groups = { AddGroup.class, EditGroup.class })
    private String ruleCode;

    /**
     * 规则构成
     */
    @NotBlank(message = "规则构成不能为空", groups = { AddGroup.class, EditGroup.class })
    private String ruleConstans;


}
